local sk__benxi = fk.CreateSkill {

  name = "sk__benxi",

  tags = { Skill.Compulsory, },

}



sk__benxi:addEffect(fk.TargetSpecified, {
  name = "sk__benxi",
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(sk__benxi.name) and data.card.trueName == "slash"
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local to = data.to
    if #room:askForDiscard(to, 1, 1, true, sk__benxi.name, true, ".|.|.|.|.|equip", "#sk__benxi-discard") == 0 then
      data.disresponsive = true
    end
  end,
})

sk__benxi:addEffect("distance", {
  name = "#sk__benxi_distance",
  --sk__benxi,
  correct_func = function(self, from, to)
    if from:hasSkill(sk__benxi.name) then
      return -1
    end
    return 0
  end,
})

return sk__benxi